/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.fd.dao;

import java.util.Collection;
import java.util.List;

import com.xy.biz.fd.domain.po.DocumentLogPO;
import com.xy.biz.fd.domain.query.DocumentLogQuery;

/**
 * 
 * 
 * @author zgy
 * @date 2021-5-20
 */
public interface DocumentLogDao {
	
	/**
	 * 保存
	 *
	 * @param documentLogPO
	 */
	int saveDocumentLog(DocumentLogPO documentLogPO);
	
	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	int saveAllDocumentLog(Collection<DocumentLogPO> collection);
	
	/**
	 * 更新
	 *
	 * @param documentLogPO
	 */
	int updateDocumentLog(DocumentLogPO documentLogPO);
	
	/**
	 * 删除
	 *
	 * @param documentLogId
	 */
	int deleteDocumentLog(Long documentLogId);
	
	/**
	 * 查找一个
	 *
	 * @param documentLogId
	 * @return
	 */
	DocumentLogPO getDocumentLog(Long documentLogId);
	
	/**
	 * 查找多条
	 *
	 * @param collection 
	 * @return
	 */
	List<DocumentLogPO> listDocumentLogById(Collection<Long> collection);
	
	/**
	 * 条件查找多条
	 *
	 * @param query 查找条件
	 * @return
	 */
	List<DocumentLogPO> listDocumentLog(DocumentLogQuery query);
	
	/**
	 * 条件统计个数
	 *
	 * @param query 查找条件
	 * @return
	 */
	int countDocumentLog(DocumentLogQuery query);
	
}
